<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<script type="text/javascript">
	$(function() {
		//导航切换
		$(".menuson li").click(function() {
			$(".menuson li.active").removeClass("active")
			$(this).addClass("active");
		});

		$('.title').click(function() {
			var $ul = $(this).next('ul');
			$('dd').find('ul').slideUp();
			if ($ul.is(':visible')) {
				$(this).next('ul').slideUp();
			} else {
				$(this).next('ul').slideDown();
			}
		});
	})
	function logout() {
		if (confirm("您确认要退出系统吗？")) {
			$
					.post(
							"${pageContext.request.contextPath}/user_logout.action",
							{},
							function(result) {
								var result = eval('(' + result + ')');
								if (result.success) {
									window.location.href = "${pageContext.request.contextPath}/flight_indexList.action";
								}
							});
		}
	}
	function refund(id) {
		if (confirm("您确认要退票吗？")) {
			$
					.post(
							"${pageContext.request.contextPath}/ticket_refund.action",
							{
								id : id
							},
							function(result) {
								var result = eval('(' + result + ')');
								if (result.success) {
									alert("退票成功！");
									window.location.href = "${pageContext.request.contextPath}/ticket_myTicketOrderList.action";
								}
							});
		}
	}
	
	function Search(content){
		$.post("$/disktalk/newFile/search?content=",{
			content = content
		});
	}
</script>
<div id="leftMenu">
	<div style="font-size: 18px; margin-top: 12px;margin-left:12px;">快速查询栏</div>
	<ul class="nav nav-pills nav-stacked">
		<!-- <li ><a href="/disktalk/newFile/list" >全部文件</a></li> -->
		<li><a onclick="Search(文档)">Work文档</a></li>
		<li><a onclick="Search(表格)">Execl表格</a></li>
		<li><a onclick="Search(txt)">TXT文本</a></li>
		<li><a onclick="Search(图片)">图片</a></li>
		<li><a href="javascript:logout()">安全退出</a></li>
	</ul>
</div>
